package us.wili.dev.model.base;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import us.wili.dev.common.model.BaseModelWithId;

public class BaseCompany extends BaseModelWithId implements Serializable {
    @ApiModelProperty(value="公司logo")
    private String logo;

    @ApiModelProperty(value="公司名称")
    private String name;

    @ApiModelProperty(value="公司简介")
    private String simple;

    @ApiModelProperty(value="公司电话")
    private String phone;

    @ApiModelProperty(value="公司微信")
    private String wx;

    @ApiModelProperty(value="公司地址")
    private String address;

    @ApiModelProperty(value="公司详细介绍")
    private String introduce;

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo == null ? null : logo.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSimple() {
        return simple;
    }

    public void setSimple(String simple) {
        this.simple = simple == null ? null : simple.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx == null ? null : wx.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce == null ? null : introduce.trim();
    }

    public void copyPropertiesFrom(BaseCompany source) {
        this.setLogo(source.getLogo());
        this.setName(source.getName());
        this.setSimple(source.getSimple());
        this.setPhone(source.getPhone());
        this.setWx(source.getWx());
        this.setAddress(source.getAddress());
        this.setIntroduce(source.getIntroduce());
    }

    public void copyAndIgnoreNullFrom(BaseCompany source) {
        if (source.getLogo() != null) {
            this.setLogo(source.getLogo());
        }
        if (source.getName() != null) {
            this.setName(source.getName());
        }
        if (source.getSimple() != null) {
            this.setSimple(source.getSimple());
        }
        if (source.getPhone() != null) {
            this.setPhone(source.getPhone());
        }
        if (source.getWx() != null) {
            this.setWx(source.getWx());
        }
        if (source.getAddress() != null) {
            this.setAddress(source.getAddress());
        }
        if (source.getIntroduce() != null) {
            this.setIntroduce(source.getIntroduce());
        }
    }
}